FROM python:3.10
WORKDIR /code

COPY ./requirements.txt /code/requirements.txt

# 国内配置镜像源
RUN pip config set global.index-url https://pypi.mirrors.ustc.edu.cn/simple/

RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

COPY ./app /code/app

CMD python /code/app/main.py